{% extends "base.html" %}
{% block body %}
<div class="contact-info">
    <div class="row">
    <div class="col-sm-12">
        <div class="col-sm-4">
            <div class="row">
                <h4>模特<small>({{ siteinfo.actress_count }})</small></h4>
                <div class="extra-wrap" id="actress_div">
                    <img src="http://static5.piclab.org/image/loading.gif">
                </div>
                <hr>
            </div>

            <div class="row">
                <h4>标签<small>({{ siteinfo.tag_count }})</small></h4>
                <div class="extra-wrap" id="tag_div">
                    <img src="http://static5.piclab.org/image/loading.gif">
                </div>
                <hr>
            </div>
            <div class="row">
                <h4>相册<small>({{ siteinfo.album_count }})</small></h4>
                <div class="extra-wrap" id="album_div">
                    <img src="http://static5.piclab.org/image/loading.gif">
                </div>
            </div>
            <div class="row">
                <h4>卷<small>({{ siteinfo.volume_count }})</small></h4>
                <div class="extra-wrap" id="volume_div">
                    <img src="http://static5.piclab.org/image/loading.gif">
                </div>
                <br><br>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="row">
                <h4>评分最高</h4>
                <div class="archives_thumb">
                    {% for pic in highest_rate_pics %}
                        <a href="{{url_for('pic.one_pic',uid=pic.id, source=source)}}" title="PV:{{pic.pv}}">{{ pic.thumbnail_img_archive | safe }}</a>
                    {% endfor %}

                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="row">
                <h4>最热图片</h4>

                <div class="archives_thumb">

                        {% for pic in hottest_pics %}
                            <a href="{{url_for('pic.one_pic',uid=pic.id, source=source)}}" title="PV:{{pic.pv}}">{{ pic.thumbnail_img_archive | safe }}</a>
                        {% endfor %}

                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
        </div>
</div>
{% endblock %}





{% block script %}
<script type="text/javascript">
$(document).ready(function(){
    $("#actress_div").load('{{url_for('api.archive_albums', label='actress')}}');
    $("#tag_div").load('{{url_for('api.archive_albums', label='tag')}}');
    $("#album_div").load('{{url_for('api.archive_albums', label='album')}}');
    $("#volume_div").load('{{url_for('api.archive_albums', label='volume')}}');
})
</script>
{% endblock %}